package com.storage.service;


import com.storage.vo.FileStorageIdentity;

import java.io.InputStream;

public interface StorageService {
    byte[] getFileBytes(String fileAddress);

    FileStorageIdentity saveFile(byte[] fileBytes, String middleDir);

    FileStorageIdentity saveFile(InputStream fileInputStream,String middleDir);

    InputStream getFileStream(String fileAddress); // 更灵活
    /**
     * 申请地址
     * @param middleDir
     * @return
     */
    String applyAddress(String middleDir);
}
